// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import jWeixin from 'weixin-js-sdk'
import Ajax from './tools/https.js'
import vueFilter from './tools/filter.js';

// vux引入start-------------
import {
    Datetime,
    XAddress,
    ChinaAddressV3Data,
    Qrcode,
    ToastPlugin,
    ConfirmPlugin,
    PopupPicker,
    XDialog,
    Radio,
    Group,
    XSwitch,
    Checklist,
    Popup,
    Tab,
    TabItem,
    XTextarea,
    XNumber,
    Confirm,
    Scroller,
    DatetimeView,
    Previewer,
    Rater,
    LoadingPlugin,
    AlertPlugin 
} from 'vux';
Vue.component(Rater.name, Rater);
Vue.component(Datetime.name, Datetime);
Vue.component(Popup.name, Popup);
// Vue.use(Datetime);
Vue.component(XAddress.name, XAddress);
Vue.prototype.ChinaAddressV3Data = ChinaAddressV3Data;
Vue.component(Qrcode.name, Qrcode);
Vue.use(ToastPlugin)
Vue.use(ConfirmPlugin)
Vue.use(LoadingPlugin)
Vue.use(AlertPlugin)
Vue.component(PopupPicker.name, PopupPicker);
Vue.component(XDialog.name, XDialog);
Vue.component(Radio.name, Radio);
Vue.component(Group.name, Group);
Vue.component(XSwitch.name, XSwitch);
Vue.component(Checklist.name, Checklist);
Vue.component(Previewer.name, Previewer);
Vue.component(Tab.name, Tab);
Vue.component(TabItem.name, TabItem);
Vue.component(XTextarea.name, XTextarea);
Vue.component(XNumber.name, XNumber);
Vue.component(Confirm.name, Confirm);
Vue.component(Scroller.name, Scroller);
Vue.component(DatetimeView.name, DatetimeView);
// vux引入end-------------
vueFilter(Vue)
Vue.prototype.Ajax = Ajax;
Vue.prototype.jWeixin = jWeixin;
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
